import hashlib
import struct

class t3(object):
    def create_md5_auth(self, data):
        m = hashlib.md5()
        m.update(data)
        return m.hexdigest()


if __name__ == "__main__":
    a = "123456789"
    print(struct.pack('9s',a.encode("utf-8")))
    print(t3().create_md5_auth(struct.pack('9s',a.encode("utf-8"))))